package remote.geom
{
	import remote.IClone;
	
	/**
	 * 表示可视组件周围四个边缘区域的粗细
	 * @author 银魂飞雪
	 * @createDate 2011-2-26
	 */
	public class EdgeMetrics implements IClone
	{
		public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
		
		public var bottom:Number;
		public var left:Number;
		public var right:Number;
		public var top:Number;
		
		public function EdgeMetrics(left:Number = 0, top:Number = 0,
									right:Number = 0, bottom:Number = 0)
		{
			super();
			
			this.left = left;
			this.top = top;
			this.right = right;
			this.bottom = bottom;
		}

		public function equal(edge:EdgeMetrics):Boolean
		{
			return left == edge.left && top == edge.top && right == edge.right && bottom == edge.bottom;
		}
		
		public function clone():Object
		{
			return new EdgeMetrics(left, top, right, bottom);
		}
	}
}